//
//  PageRespnse.swift
//  GoAbroad
//
//  Created by Pink Snow on 2025/5/7.
//

import UIKit
import ObjectMapper
class PageResponse<T: Mappable>: Mappable {
    var list: [T] = []
    var total: Int = 0
    var currentPage: Int = 1
    var pageSize: Int = 20

    required init?(map: Map) {}

    func mapping(map: Map) {
        list        <- map["list"]
        total       <- map["total"]
        currentPage <- map["current"]
        pageSize    <- map["pageSize"]
    }
}
